import Vue from 'vue'
import Router from 'vue-router'
import HallSeat from '@/pages/hallseat/HallSeat'
import ChooseArea from '@/pages/choosearea/ChooseArea'
import TicketsBuy from '@/pages/ticketsbuy/TicketsBuy'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'ChooseArea',
      component: ChooseArea,
      meta: {
        keepAlive: true
      }
    },
    {
      path: '/hallseat/:HallN',
      name: 'HallSeat',
      component: HallSeat,
      props: true,
      meta: {
        keepAlive: true
      }
    },
    {
      path: '/ticketsbuy',
      name: 'TicketsBuy',
      component: TicketsBuy
    }
  ]
})
